package com.hava.demo.entity;

import javax.persistence.Id;
import com.hava.orm.entity.UUIDEntity;

import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by zhanpeng on 15-11-20.
 */
@Entity
@Table(name = "uuidoneentity")
public class UUIDOneEntity extends UUIDEntity{

    private short shortnumber;

    private int intnumber;

    private long longnumber;

    private String description;

    //@Temporal(TemporalType.DATE)
    private Date date;

    //用来扩充数据库容量，不然会发生数据是变成数据库默认的string长度
    @Lob
    private String context;

    public short getShortnumber() {
        return shortnumber;
    }

    public void setShortnumber(short shortnumber) {
        this.shortnumber = shortnumber;
    }

    public int getIntnumber() {
        return intnumber;
    }

    public void setIntnumber(int intnumber) {
        this.intnumber = intnumber;
    }

    public long getLongnumber() {
        return longnumber;
    }

    public void setLongnumber(long longnumber) {
        this.longnumber = longnumber;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }
}
